#ifndef GWIDGETPANEL_H
#define GWIDGETPANEL_H

#include <QtGui>
#include "gwidget_global.h"
#include "RTDataIO.h"

class GRAPHWIDGETSHARED_EXPORT GWidgetPanel : public QWidget
{
Q_OBJECT
public:
    GWidgetPanel(QWidget *parent = 0);
	~GWidgetPanel();
	static GWidgetPanel* CopyWidget(GWidgetPanel *w);
	void				ConfigWidget();
	void				setWidgetRealTime(bool b);
	QString				GetStrOptType(int opttype);

	int					m_opttype;
	int					m_shapetype;	
	QString				m_showname;
	QString				m_bcolor0;
	QString				m_bcolor1;
	QString				m_bcolor;
	QString				m_fcolor0;
	QString				m_fcolor1;
	QString				m_fcolor;

	XDataLinkEx			m_datalink_show;
	XDataLinkEx			m_datalink_ctrl;

	QString			m_name0;
	QString			m_name1;
	QString			m_name2;
	QString			m_name3;
	QString			m_name4;
	QString			m_name5;

	XDataLinkEx		m_dblink_0;
	XDataLinkEx		m_dblink_1;
	XDataLinkEx		m_dblink_2;
	XDataLinkEx		m_dblink_3;
	XDataLinkEx		m_dblink_4;
	XDataLinkEx		m_dblink_5;
private:
	bool				m_bRealTime;

	void				mousePressEvent(QMouseEvent * event);
	void				paintEvent(QPaintEvent* e);
signals:

public slots:

};

#endif // GWIDGETPANEL_H
